package com.lb.trac.pojo.condition;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.lb.trac.util.SQLCondition;

public class AllegatiFinderByIdTicket implements SQLCondition {

	private String idTicket;

	public AllegatiFinderByIdTicket(String id) {
		this.idTicket = id;
	}

	public Criterion create(Object... params) {
		Criterion c = Restrictions.eq("tickets.idTicket", new BigDecimal(idTicket));
		return c;
	}

}
